import { get, post, deleteData } from './http'

// 向打印机设定打印参数
export const setParameter = data => post('/printer/parameter', data)

// 从打印机测取出设定的打印参数
export const getParameter = () => get('/printer/parameter')

// 向打印机发送打印数据
export const startPrint = (data) => post('/printer/upload', data)

// 从打印机测取出打印历史记录
export const getHistory = () => get('/printer/history')

// 根据编号指定删除打印机的打印历史记录
export const deleteHistory = (data) => deleteData('/printer/history', data)
